<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<%@page import="com.lmpop.trade.ts_category.*" %>
<jsp:useBean id="randomId" class="com.lmpop.frame.util.RandomID" scope="page" />  

<%
  
   String info_id = randomId.GenTradeId();
                                         
   Ts_categoryInfo ts_categoryInfo = new Ts_categoryInfo();
                                       
   String select = ts_categoryInfo.getSelCatByTLevel("2", "1");
   
   //out.println("------>"+session.getAttribute("session_cust_id"));
   
   //request.setAttribute("attach_root_id",info_id);
   
   //out.println("------>"+request.getAttribute("attach_root_id"));
	
  
  
    
%>
<html>
  <head>
    <title>新增品牌</title>
	  <link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css">
        <script type='text/javascript' src='<%=request.getContextPath()%>/dwr/engine.js'></script>
		<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/util.js'></script>
		<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/interface/Ts_categoryInfo.js'></script>   
    	<script type="text/javascript" src="js_brand.js"></script>  
    	<script type="text/javascript" src="/program/admin/js/judgment.js" charset="UTF-8"></script>
</head>

<body>
	
	<h1>新增品牌</h1>
	
	<form action="/doTradeReg.do" method="post" name="addForm">
	
 <table width="100%" cellpadding="1" cellspacing="1" border="0" class="listtab">
		<tr>
			<td  align="right" width="20%">
				品牌名称<font color="red">*</font>			
			</td>
			<td  width="80%">
				<input name="title" id="title" type="text" maxlength="90" onkeyup="inputNoHorns(this)"   onbeforepaste= "inputNoHorns(this); "/>
			</td>
		</tr>
      
 
		<tr>
			<td align="right" width="20%" valign="top">
				所属分类<font color="red">*</font>				
			</td>
			<td width="80%" colspan="3">
									<select name="sort1" id="sort1" size="8" style="width:100px" onChange="setSecondClass(this.value);" onclick="setTypeName1(this)">
									   <%=select%>
									</select>
									<select name="sort2" id="sort2"  size="8" style="width:100px;display:none" onChange="setTherdClass(this.value);" onclick="setTypeName2(this)">
										<option value="">请选择...</option>
									</select>
									<select name="sort3" id="sort3"  size="8" style="width:100px;display:none" onclick="setTypeName3(this)" >
										<option value="">请选择...</option>
									</select>
				</td>
		</tr>
      
   <tr>
			<td colspan="2"   style="background:#FFDBAB;">
				 <table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="19%" height="25" align="right"   style="background:#FFDBAB;">
									<input type="hidden" name="class_id1" id="class_id1" value="">
									<input type="hidden" name="class_id2" id="class_id2" value="">
									<input type="hidden" name="class_id3" id="class_id3" value="">	 
									<input type="hidden" name="class_id_group" id="class_id_group" value=""/>
                  
                  <span style="font-size:12px;"> 您当前选择的是:</span>
								  
								  </td>
								<td align="left"   style="background:#FFDBAB;">
									
										<label id="name1" style="color:#FF7300;"></label>
										<label id="name2" style="color:#FF7300;"></label>
										<label id="name3" style="color:#FF7300;"></label> 
								</td>
							</tr>
						</table>
			
			</td>
		</tr>
      
    <tr>
			<td align="right" width="20%">
				品牌缩略图:		
			</td>
			<td  width="80%">
				<jsp:include page="/program/inc/uploadImgInc.jsp">
					 <jsp:param name="attach_root_id" value="<%=info_id%>" />
				</jsp:include>

			
			</td>
		</tr>
   		
		<tr>
			<td align="right" width="20%">
				官网地址<font color="red">*</font>			
			</td>
			<td  width="80%"><input name="site_url" id="site_url" type="text" maxlength="50" value="http://" onkeyup="inputNoHorns(this)"   onbeforepaste= "inputNoHorns(this); "/></td>
		</tr>
		
		<tr>
			<td align="right" width="20%">
				显示顺序:
			</td>
			<td  width="80%">
				
 <input name="sort_no" id="sort_no" type="text" onKeyUp="if(!/^[0-9][0-9]*$/.test(this.value))this.value=''" value="0" maxlength="4" size="8"/>
		<font color="#666666">(必须为数字)</font>		
			</td>
		</tr>
		
		<tr>
			<td align="right" width="20%">
				检索字母:
			</td>
			<td  width="80%">
				
 <input name="pyKey" id="pyKey" type="text" onKeyUp="if(!/^[A-Z]*$/.test(this.value))this.value=''" value="A" maxlength="1" size="4"/>
		<font color="#666666">(请输入A-Z之间的字母)</font>		
			</td>
		</tr>
		
		<tr>
			<td align="right" width="20%">
				是否显示:
			</td>
			<td  width="80%">
				 <input name="is_show" id="is_show1" type="radio" value="0" checked/>显示
				 <input name="is_show" id="is_show2" type="radio" value="1"/>不显示
				</td>
		</tr>
		<tr>
			<td align="right" width="20%">
				所属平台:
			</td>
			<td  width="80%">
				 <input name="is_platform" id="is_platform1" type="radio" value="0" checked/>自营品牌
				 <input name="is_platform" id="is_platform2" type="radio" value="1"/>会员品牌
				</td>
		</tr>
			
		   		
		<tr>
			<td align="right" width="20%">
				品牌描述:
			</td>
			<td  width="80%">
		  <textarea name="content"></textarea>
			<script type="text/javascript" src="/program/plugins/ckeditor/ckeditor.js"></script>
			<script type="text/javascript">
				 CKEDITOR.replace('content');
			</script>
				</td>
		</tr>
		
	</table>
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<input type="hidden" name="bpm_id" value="0172" />
				<input name="info_id" id="info_id" type="hidden" value="<%=info_id%>"/>
				<input type="button" class="buttoncss" name="tradeSub" value="提交" onClick="subForm()"/>&nbsp;&nbsp;
				<input type="button" class="buttoncss" name="tradeRut" value="返回" onClick="window.location.href='index.jsp';"/>
			</td>
		</tr>
	</table>
	</form>
</body>

</html>
